<template>
  <div class="site-header">
    <div class="container w">
      <div class="log">
        <a href="#"></a>
      </div>
      <div class="nav">
        <ul>
          <li><a href="#">Xiaoxin手机</a></li>
          <li><a href="#">Xiaoxin小鑫</a></li>
          <li><a href="#">电视</a></li>
          <li><a href="#">笔记本</a></li>
          <li><a href="#">平板</a></li>
          <li><a href="#">家电</a></li>
          <li><a href="#">路由器</a></li>
          <li><a href="#">服务</a></li>
          <li><a href="#">社区</a></li>
        </ul>
      </div>
      <div class="search">
          <input type="text" placeholder="请输入" v-model="serachText" />
          <button><span class="iconfont">&#xe8ef;</span></button>
      </div>
      
    </div>
  </div>
</template>

<script>
import { ref } from "vue";
export default {
  name: "SiteHeader",
  setup() {
    let serachText = ref("");
    return {
      serachText,
    };
  },
};
</script>

<style lang="less" scoped>
.site-header {
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    .log {
      a {
        display: block;
        width: 56px;
        height: 56px;
        background: url(../../assets/images/header/siteHeader/logo.bmp);
        background-size: cover;
        border-radius: 25%;
        
      }
    }
    .nav {
      ul {
        display: flex;
        li {
          padding: 0 11px;
          a{
            display: block;
            color: black;
          }
        }
      }
    }
    .search {
      display: flex;
      width: 296px;
      height: 50px;

      input[type="text"] {
        width: 245px;
        height: 100%;
        border: 1px solid #e0e0e0;
        border-right: 0;
      }
      button{
        position: relative;
        width: 52px;
        height: 100%;
        border: 1px solid #e0e0e0;
        background-color: white;
        cursor: pointer;
        &:hover {
          background-color: #409eff;
          color: white;
        }
        span{
         font-size: 22px;
        }
      }
    }
  }
}
</style>